<template>
    <div>
        <div v-for="item in data">
            <button v-if="item.label === 'button'">{{ cpm[item.srcDataKey] }}</button>
            <input v-if="item.label === 'input'" />
        </div>
    </div>
</template>

<script lang="ts" setup>
import { ref, reactive } from 'vue'
defineProps({
    data: {
        // [{key:string,lebel:string,srcDataKey:[]}]
        type: [] as any,
        default: () => { }
    },
    cpm: {
        type: {} as any,
        default: () => { }
    }
})
</script>

<style scoped></style>